/**
 * Created with IntelliJ IDEA.
 * Description:输入一个整数，计算它的位数。如果输入的整数不大于0则输出这个数
 * User: zjc
 * Date: 2022-05-02
 * Time: 22:53
 */
import java.util.Scanner;

public class Project {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();
        int count = 0;
        //write code here......
        while(true){
            if(num/10 > 0){
                count++;
                num = num/10;
            }else{
                count++;
                System.out.println(count);
                break;
            }
        }
    }
}
